﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Payroll.BusinessLogic.CustomerManager;
using PayrollHR.Web;

namespace PayrollHR.Administration.Modules
{
    public partial class CaseProfileView : BasePayrollAdministrationUserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            { }
        }
        public void BindCaseProfilePersonal(Customer customer)
        {
            ctrlCaseProfilePersonal.BindCustomer(customer);
            ctrlCaseProfileStudy.DataBind(customer);
            ctrlCaseProfileFinancial.DataBind(customer);
            ctrlCaseProfileProperty.DataBind(customer);
        }
        /// <summary>
        /// Gets the customer.
        /// </summary>
        /// <param name="customer">The customer.</param>
        /// <returns>Customer Info</returns>
        public Customer GetCustomer(Customer customer)
        {
            customer = ctrlCaseProfilePersonal.GetCustomer(customer);
            customer = ctrlCaseProfileStudy.GetCustomer(customer);
            customer = ctrlCaseProfileFinancial.GetCustomer(customer);
            customer = ctrlCaseProfileProperty.GetCustomer(customer);
            return customer;
        }
        /// <summary>
        /// Gets the profile.
        /// </summary>
        /// <returns>List of Profile</returns>
        public List<profile> GetProfile()
        {
            List<profile> List = new List<profile>();
            List = ctrlCaseProfilePersonal.GetProfile();
            ctrlCaseProfileStudy.GetProfile(ref List);
            ctrlCaseProfileFinancial.GetProfile(ref List);
            ctrlCaseProfileProperty.GetProfile(ref List);
            return List;
        }
        /// <summary>
        /// Gets the profile property.
        /// </summary>
        /// <returns>List of ProfileProperty</returns>
        public List<ProfileProperty> GetProfileProperty()
        {
            return CaseProfileSupports1.GetProfileProperty();
        }
        /// <summary>
        /// Gets the profile finan.
        /// </summary>
        /// <returns>List of ProfileFinan</returns>
        public List<ProfileFinan> GetProfileFinan()
        {
            return ctrlCaseProfileFinancialSource.GetProfileFinan();
        }
        /// <summary>
        /// Gets the fees schedule.
        /// </summary>
        /// <returns>List of FeesSchedule</returns>
        public List<FeesSchedule> GetFeesSchedule()
        {
            //return null;
            return ctrlFeesSchedule.GetFeesSchedule();
        }
    }
}